<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var ul = document.getElementsByTagName("ul")[0];
				console.log(ul.childNodes);
				console.log(ul.childNodes.length);
				console.log(ul.firstChild);
				console.log(ul.firstChild.nextSibling);
			}
		</script>
	</head>
	<body>
		<ul>
			<li>red</li>
			<li>blue</li>
			<li>green</li>
		</ul>
	</body>
</html>